import { Injectable } from '@nestjs/common';

@Injectable()
export class StudentService{

private users=[
    {id:1,name:'张三'},
    {id:2,name:'李四'}
];
findAll(){
    return this.users;
}
findOne(id:number){
    return this.users.find(user=>user.id===id);
}
}